#ifndef _BSP_CAN_H_
#define   _BSP_CAN_H_

#include "can.h"

typedef struct
{
    uint16_t can_id;
    int16_t  set_voltage;
    uint16_t rotor_angle;
    int16_t  rotor_speed;
    int16_t  torque_current;
    uint8_t  temp;
}moto_info_t;

void bsp_can_dianliu(uint16_t speed);


void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan);

	void can_user_init(CAN_HandleTypeDef* hcan );

#endif
